import { Entity, Column, PrimaryGeneratedColumn, ManyToOne, JoinTable, PrimaryColumn, CreateDateColumn, UpdateDateColumn } from 'typeorm';
export enum UserStatus {
    NORMAL = 1,
    LOCK = 2
}

export enum Gender {
    UNKOWN,
    MALE,
    FEMALE
}


export interface IDefaultEntity {
    createdTime: string;
    updatedTime: string;
    createdUserId: string;
    updatedUserId: string;
}

export class DefaultEntity {
    @CreateDateColumn({
        // type: 'date',
        name: 'created_time'
    })
    createdTime: string;

    @UpdateDateColumn({
        name: 'updated_time'
    })
    updatedTime: string;

    @Column({
        type: 'uuid',
        default: 'system'
    })
    createdUserId: string;
    
    @Column({
        type: 'uuid',
        default: 'system'
    })
    updatedUserId: string;
}

